<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>list.jsp</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
<script type="text/javascript" src="js/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="js/common.js"></script>
</head>
<body>
	<h2>list.jsp</h2>
	<table>
		<tr>
			<th>courseid:</th>
			<th>coursename:</th>
			<th>credit:</th>
			<th>departid:</th>
			<th>teacher:</th>
			<th colspan="3">operation:</th>
		</tr>
		<c:forEach items="${all}" var="course">
			<tr>
				<td>${course.courseid}</td>
				<td>${course.coursename}</td>
				<td>${course.credit}</td>
				<td>${course.departid}</td>
				<td>${course.teacher }</td>
				<td><a href="selectOneCourse.do?courseid=${course.courseid}">详细信息&nbsp;</a></td>
				<td><a href="toUpdateCourse.do?courseid=${course.courseid}">修改&nbsp;</a></td>
				<td><a class="delete" href="deleteCourse.do?courseid=${course.courseid}"
					onclick="return confirm('你确认要删除该课程信息吗?')">删除&nbsp;</a></td>
			</tr>
		</c:forEach>
	</table>
<!-- <a href="addCoursePage.do">添加课程</a> -->
</body>
</html>